package com.onefinger.services;

import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.support.WebBindingInitializer;
import org.springframework.web.context.request.WebRequest;

import com.onefinger.domain.Item;

public class GlobalBindingInitializer implements WebBindingInitializer {

	@Override
	public void initBinder(WebDataBinder binder, WebRequest rq) {
		binder.registerCustomEditor(Item.class, new ItemCustomEditor());

	}

}
